﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2023-03-19 19:32
    /// 描 述：骑行用户地址管理实体类
    /// </summary>
    [Table("customer_addr")]
    public class CustomerAddrEntity : BaseEntity
    {
        /// <summary>
        /// customeruser表的自增ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? customer_user_id { get; set; }

        [NotMapped]
        public string nickname { get; set; }
        /// <summary>
        /// 邮编
        /// </summary>
        /// <returns></returns>
        public string zip { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        /// <returns></returns>
        public string province { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        /// <returns></returns>
        public string city { get; set; }
        /// <summary>
        /// 区
        /// </summary>
        /// <returns></returns>
        public string district { get; set; }
        /// <summary>
        /// 具体的地址门牌号
        /// </summary>
        /// <returns></returns>
        public string address { get; set; }
        /// <summary>
        /// 是否默认1 是；0否
        /// </summary>
        /// <returns></returns>
        public byte? is_default { get; set; }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? modified_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? create_time { get; set; }
        /// <summary>
        /// 收货人姓名
        /// </summary>
        /// <returns></returns>
        public string username { get; set; }
        /// <summary>
        /// 收货人电话
        /// </summary>
        /// <returns></returns>
        public string telephone { get; set; }
    }
}
